package cn.yangliu.nacos.oauth2.config.store;

import java.util.Collection;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-06
 */
@Data
public class OAuthUsernamePasswordAuthenticationToken {

    /**
     * current class instance's member.
     * The Principal.
     */
    private Object principal;

    /**
     * current class instance's member.
     * The Credentials.
     */
    private Object credentials;

    /**
     * current class instance's member.
     * The Authorities.
     */
    private Collection<GrantedAuthority> authorities;

    /**
     * current class instance's member.
     * The Details.
     */
    private Object details;

    /**
     * current class instance's member.
     * The Authenticated.
     */
    private boolean authenticated = false;

}
